<?php
$v_url_back = _CONST_HOMEPAGE_URL_PATH;
if(isset($_REQUEST['v_session'])){
	$v_session = trim($_REQUEST['v_session']);
}else{
	$v_session= rand(1,999999999).session_id();
}
if(isset($_REQUEST['hdn_searched_text_qa'])){
	$v_searched_text_qa =_replace_bad_char(trim($_REQUEST['hdn_searched_text_qa']));
}else{
	$v_searched_text_qa = "";
}

if(isset($_REQUEST['searched_text_af'])){
	$v_searched_text_af =_replace_bad_char(trim($_REQUEST['searched_text_af']));
}else{
	$v_searched_text_af = "";
}?>
<div id="CONSULT_QA" style=".display:none"><?php
if ($_ISA_CURRENT_MODUL_CODE != "CUSTOMER" && $_ISA_CURRENT_MODUL_CODE != "VIEW"){?>
	<form name="f_dsp_fulltext_search" method="post" action="index.php">
	<input type="hidden" name="hdn_searched_text_qa" value="<?php echo $v_searched_text_qa; ?>">
	<input type="hidden" name="fuseaction" value="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="left_menu_table">
	<tr style="display:none">
		<td class="level1" colspan="2">
			<a href="<?php  echo $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_QA_QUESTION_BY_ALL_AGENCY"><?php echo _CONST_LEFT_MENU_QA_AGENCY ?></a>
		</td>
	</tr>
	<tr style="display:block">
		<td colspan="2" class="level1">
			<a href="<?php  echo $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_QA_BY_ALL_CATE"><?php echo _CONST_LEFT_MENU_QA_CATE?></a>
		</td>
	</tr>
	<tr style="display:block">
		<td colspan="2" class="level1">
			<a href="<?php  echo $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_QA_BY_CATE&type_cate=IDEA"><?php echo _CONST_LEFT_MENU_QA_IDEA?></a>
		</td>
	</tr>
	<tr style="display:none">
		<td colspan="2" class="level1">
			<a href="<?php  echo $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_QA_BY_CATE&type_cate=RESULT"><?php echo _CONST_LEFT_MENU_QA_RESULT?></a>
		</td>
	</tr>
	<tr style="display:block">
		<td colspan="2" class="level1">
			<a href="<?php  echo $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_QA_BY_CATE&type_cate=OTHER"><?php echo _CONST_LEFT_MENU_QA_OTHER?></a>
		</td>
	</tr>
	<tr style="display:block">
		<td colspan="2" class="level1">
			<a href="<?php  echo $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_QA_BY_CATE&type_cate=REGISTER"><?php echo _CONST_LEFT_MENU_QA_REGISTER?></a>
		</td>
	</tr>
	<tr style="display:none">
		<td colspan="2" class="level1">
			<a href="<?php  echo  $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_QA_QUESTION_BY_TIME"><?php echo _CONST_LEFT_MENU_TIME ?></a>
		</td>
	</tr>
	<tr style="display:none">
		<td colspan="2" class="level1">
			<a href="<?php  echo $_ISA_WEB_SITE_PATH?>front-end/qa/index.php?fuseaction=DISPLAY_ALL_CONDITIONS_FOR_SEARCH"><?php echo _CONST_LEFT_MENU_QA_CONDITION?></a>
		</td>
	</tr>
</table>
<!--table width="100%" cellspacing="1" cellpadding="1" class="box_table" align="center">
	<tr>
		<td colspan="2" class="header" ><?php echo _CONST_LEFT_MENU_QA_PHRASE?></td>
	</tr>
	<tr>
		<td align="right">
			<input type="text" class="search_textbox" size="14" name="searched_text_qa" value="<?php echo $v_searched_text_qa;?>" onKeyDown="txt_search_qa_keydown(document.f_dsp_fulltext_search);">
		</td>
		<td  align="center">
			<input type="button" class="search_button" name="btn_search_qa" value="<?php echo _CONST_SEARCH_BUTTON;?>" onClick="btn_search_qa_onclick(document.f_dsp_fulltext_search);">
		</td>

	</tr>
	<tr><td height="10"></td></tr>
</table-->
</form>
<?php 
}?>
</div>
<div id="CUSTOMER" style=".display:none">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="left_menu_table">
	<tr	style="display:none">
		<td class="level1" background="<?php echo $_ISA_IMAGE_URL_PATH; ?>left_menu_button.gif">
			<a href="<?php echo $_ISA_WEB_SITE_PATH?>record/customer/index.php?fuseaction=DISPLAY_SINGLE_LOOKUP_CONDITIONS"><?php echo _CONST_LEFT_MENU_VIEW_STATUS; ?></a>
		</td>
	</tr>
	<tr style="display:none">
		<td class="level1" background="<?php echo $_ISA_IMAGE_URL_PATH; ?>left_menu_button.gif">
			<a href="<?php echo $_ISA_WEB_SITE_PATH?>record/customer/index.php?fuseaction=DISPLAY_SINGLE_CUSTOMER_RECORD"><?php echo _CONST_LEFT_MENU_REGISTER_RECORD; ?></a>
		</td>
	</tr>
	<tr style="display:none">
		<td class="level1" background="<?php echo $_ISA_IMAGE_URL_PATH; ?>left_menu_button.gif">
			<a href="<?php echo $_ISA_WEB_SITE_PATH?>record/customer/index.php"><?php echo _CONST_LEFT_MENU_VIEW_REGISTERED_RECORD_STATUS; ?></a>
		</td>
	</tr>
</table>
</div>
<div id="VIEW" style=".display:none">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="left_menu_table">
	<tr>
		<td class="level1" background="<?php echo $_ISA_IMAGE_URL_PATH; ?>left_menu_button.gif">
			<a href="<?php echo $_ISA_WEB_SITE_PATH?>record/view/index.php"><?php echo _CONST_LEFT_MENU_VIEW_PROCESSED_RECORD; ?></a>
		</td>
	</tr>
	<tr>
		<td class="level1" background="<?php echo $_ISA_IMAGE_URL_PATH; ?>left_menu_button.gif">
			<a href="<?php echo $_ISA_WEB_SITE_PATH?>record/view/index.php?fuseaction=DISPLAY_ALL_PROCESSING_RECORD"><?php echo _CONST_LEFT_MENU_VIEW_PROCESSING_RECORD; ?></a>
		</td>
	</tr>
	<tr>
		<td class="level1" background="<?php echo $_ISA_IMAGE_URL_PATH; ?>left_menu_button.gif">
			<a href="<?php echo $_ISA_WEB_SITE_PATH?>record/view/index.php?fuseaction=DISPLAY_ALL_RECORD_FOR_SUPPLYMENT"><?php echo _CONST_LEFT_MENU_VIEW_SUPPLYMENT_RECORD; ?></a>
		</td>
	</tr>
	<tr>
		<td class="level1" background="<?php echo $_ISA_IMAGE_URL_PATH; ?>left_menu_button.gif">
			<a href="<?php echo $_ISA_WEB_SITE_PATH?>record/view/index.php?fuseaction=DISPLAY_ALL_NO_PROCESSING_RECORD"><?php echo _CONST_LEFT_MENU_VIEW_NO_PROCESSING_RECORD; ?></a>
		</td>
	</tr>
</table>
</div>
<!--Thong tin dang nhap-->
<table>
	<tr><td>&nbsp;</td></tr>
	<tr>
		<td align="left" class="logged_user" ><?php echo show_info_by_citizen($v_url_back); ?></td>
	</tr>
</table>
<script><?php
	if ($_ISA_CURRENT_MODUL_CODE == "CONSULT_QA"){ ?>
		document.all.CONSULT_QA.style.display = "block";<?php
	}else{?>
		document.all.CONSULT_QA.style.display = "none";	<?php
	}
	if ($_ISA_CURRENT_MODUL_CODE == "CUSTOMER"){ ?>
		document.all.CUSTOMER.style.display = "block";<?php
	}else{?>
		document.all.CUSTOMER.style.display = "none";<?php
	}
	if ($_ISA_CURRENT_MODUL_CODE == "VIEW"){ ?>
		document.all.VIEW.style.display = "block";<?php
	}else{?>
		document.all.VIEW.style.display = "none";<?php
	}?>
</script>
